package com.mrjy.maintain.dao;


import com.mrjy.common.entity.RecordIncomeInfo;

import java.util.List;
import java.util.Map;

public interface IRecordIncomeInfoDao {
    //插入
    int insert(RecordIncomeInfo info);

    //查询
    RecordIncomeInfo queryById(int id);

    int updateDisableFlag(RecordIncomeInfo info);

    int deleteByIds(int[] ids);

    Map<String, Object> queryDetailByBeneficiaryId(RecordIncomeInfo recordIncomeInfo);

    List<RecordIncomeInfo> queryIncomePageByInfo(RecordIncomeInfo info);

    List<RecordIncomeInfo> queryIncomeAll();

    /*
    * 更新收益表情况
    *
    * */
    int updateIncomeByUserId(RecordIncomeInfo recordIncomeInfo);

    List<RecordIncomeInfo> queryUnDoneIncomeAll();

    int updateById(RecordIncomeInfo recordIncomeInfo);

    List<RecordIncomeInfo> queryUnDoneIncomeByVoucher();

    int updateSettleStatusById(RecordIncomeInfo recordIncomeInfo);
}
